import Main from '@/views/main.vue';
import IFrame from '@/components/IFrame'
import ChildView from '@/components/ChildView'

export default [{
        path: '/profile',
        name: 'profile',
        meta: {
            title: '个人信息',
            hideInMenu: true
        },
        component: Main,
        children: [{
            path: 'info',
            name: 'info',
            meta: {
                title: '我的信息',
                hideInMenu: false
            },
            component: () =>
                import ('@/views/profile/index.vue')
        }]
    },

    // 系统管理
    {
        path: '/system',
        name: 'system',
        meta: {
            icon: 'el-icon-menu',
            title: '系统管理',
            access: ['system:page']
        },
        component: Main,
        children: [{
                path: 'user',
                name: 'user',
                meta: {
                    icon: 'el-icon-menu',
                    title: '用户管理',
                    access: ['system:user:page']
                },
                component: () =>
                    import ('@/views/system/sysuser/index.vue')
            },
            {
                path: 'role',
                name: 'role',
                meta: {
                    icon: 'el-icon-menu',
                    title: '角色管理',
                    access: ['system:role:page']
                },
                component: () =>
                    import ('@/views/system/sysrole/index.vue')
            },
            {
                path: 'permission',
                name: 'permission',
                meta: {
                    icon: 'el-icon-menu',
                    title: '权限管理',
                    access: ['system:permission:page']
                },
                component: () =>
                    import ('@/views/system/sysmenu/index.vue')
            },
            {
                path: 'dict',
                name: 'dict',
                meta: {
                    icon: 'el-icon-menu',
                    title: '字典管理',
                    access: ['system:dict:page']
                },
                component: () =>
                    import ('@/views/system/sysdict/index.vue')
            },
            {
                path: 'syslog',
                name: 'syslog',
                meta: {
                    icon: 'el-icon-menu',
                    title: '日志管理',
                    access: ['system:syslog:page']
                },
                component: () =>
                    import ('@/views/system/syslog/index.vue')
            },
            {
                path: 'online',
                name: 'online',
                meta: {
                    icon: 'el-icon-menu',
                    title: '在线用户',
                    access: ['system:online:page']
                },
                component: () =>
                    import ('@/views/system/online/index.vue')
            },
            {
                path: 'scheduler',
                name: 'scheduler',
                meta: {
                    icon: 'el-icon-menu',
                    title: '定时任务',
                    access: ['system:scheduler:page']
                },
                component: () =>
                    import ('@/views/system/sysscheduler/index.vue')
            }
        ]
    },



    // 系统工具
    {
        path: '/systemTools',
        name: 'systemTools',
        meta: {
            icon: 'el-icon-menu',
            title: '系统工具',
            access: ['system:tools:page']
        },
        component: Main,
        children: [
            {
                path: 'data',
                name: 'data',
                meta: {
                    icon: 'el-icon-menu',
                    title: '数据导入',
                    access: ['system:data:page']
                },
                component: () =>
                    import ('@/views/whizenoa/index.vue')
            },
            {
                path: 'email',
                name: 'email',
                meta: {
                    icon: 'el-icon-menu',
                    title: '邮件工具',
                    access: ['system:tools:email:page']
                },
                component: () =>
                    import ('@/views/system/tools/sendMail.vue')
            },
            {
                path: 'generator',
                name: 'generator',
                meta: {
                    icon: 'el-icon-menu',
                    title: '代码生成器',
                    access: ['system:tools:generator:page']
                },
                component: () =>
                    import ('@/views/system/generator/index.vue')
            },
            {
                path: 'hlsPlay',
                name: 'hlsPlay',
                meta: {
                    icon: 'el-icon-menu',
                    title: '流媒体视频',
                    access: ['system:tools:hlsPlay:page']
                },
                component: () =>
                    import ('@/views/system/hlsPlay/index.vue')
            },
            {
                path: 'nplayer',
                name: 'nplayer',
                meta: {
                    icon: 'el-icon-menu',
                    title: 'NPlayer视频',
                    access: ['system:tools:nplayer:page']
                },
                component: () =>
                    import ('@/views/system/hlsPlay/nplayer.vue')
            }

        ]
    },

];
